package com.zhoug.map2.dianditu;

import com.zhoug.logger2.Logger;

import org.osmdroid.tileprovider.tilesource.XYTileSource;

/**
 * @Author: zhoug
 * @Date: 2025-01-03
 * @Description:
 */
public class TianDiTuLocalHostSource  extends XYTileSource {
    private static final boolean DEBUG = false;
    private static final String TAG = ">>>TianDiTuLocalHostSource";

    public TianDiTuLocalHostSource() {
        super("LocalHost", 1, 9, 256, ".png",
                new String[]{"http://192.168.0.32:8002/vec_w/"});
    }
    @Override
    public String getTileURLString(long pMapTileIndex) {
        String tileURLString=super.getTileURLString(pMapTileIndex);
        if (DEBUG) {
            Logger.d(TAG, tileURLString);
        }
        return tileURLString;
    }
}
